package com.example.demo.Service;

import com.example.demo.Entity.CurrentStorage;
import com.example.demo.Entity.Item;
import com.example.demo.Entity.Shelf;

import java.util.List;
import java.util.Optional;
public interface CurrentStorageService {
    CurrentStorage saveCurrentStorage(CurrentStorage currentStorage);
    Optional<CurrentStorage> getCurrentStorageById(Long id);
    List<CurrentStorage> getAllCurrentStorage();
    void deleteCurrentStorageById(Long id);
    public Optional<CurrentStorage> findCurrentStorageByWarehouseIdAndItemId(Long warehouseId, Long itemId);

    List<CurrentStorage> findByItem(Item item);
    //查找某物品的剩余总量
    double currentSum(Item item);
}